package com.situ.mall.common.vo;

import com.situ.mall.common.util.Constants;
import lombok.Data;

import java.util.List;

@Data
public class IndexCategoryVO {
    private Integer id;

    private String name;

    private String imgPath;

    private List<IndexCategoryVO> children;

    public String getImgPathShow(){
        if(this.imgPath != null) {
            return Constants.filePath + this.imgPath;
        }
        return null;
    }
}
